<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Event Instance</title>
<meta name="viewport" content="width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/>
<link href="/iui/iuix.css" type="text/css" media="screen" rel="stylesheet">
<script type="text/javascript">
	function init()
	{
		var currentTime = new Date()
        var month = currentTime.getMonth() + 1
        var day = currentTime.getDate()
        var year = currentTime.getFullYear()
		var hours = currentTime.getHours() 
		if (hours < 10){
         hours = "0" + hours
         } 
		
        var minutes = currentTime.getMinutes()
		if (minutes < 10){
         minutes = "0" + minutes
         }

        var secs=currentTime.getSeconds()  
        if (secs < 10){
         secs = "0" + secs
         } 
		document.getElementById("eventTimestamp").value=month + "/" + day + "/" + year+" "+hours+":"+minutes+":"+secs
	}
</script>
</head>
	<body onload="init();">
		<div class="toolbar">
        <h1 id="pageTitle"><%= request.getParameter("eventName") %></h1>
    </div>
	<form id="searchForm"  class="dialog" method="post" action="/event/storeEventInstance/">
        <fieldset>
            <a class="button leftButton" type="cancel" 
			href="/userEventListDb.jsp">Cancel</a>
            <input type="submit" class="button blueButton" type="submit">
			<input type="text" style="display:none" name="eventName" 
			value="<%= request.getParameter("eventName") %>"/>
			<input type="text" style="display:none" name="eventType" 
			value="single"/>
			  <label>Date :</label>
			 <input id="eventTimestamp" type="text" name="eventTimestamp" 
			 value=""/>
        </fieldset>
    </form>
	</body>
</html>